import Vue from 'vue'
import App from './App.vue'
// 路由
import router from './router/index'
// 初始化样式
import './reset.css'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 中文
import zhlocale from 'element-ui/lib/locale/lang/zh-CN'
// 引入vuex
import store from './store/index'
// 请求
import request from './utils/request';
// 引入代码高亮css
import 'highlight.js/styles/monokai-sublime.css'

// 注册全局组件
import Top from './components/top/index'

Vue.use(ElementUI, { zhlocale });
Vue.component('Top', Top)
Vue.config.productionTip = false
Vue.prototype.request = request
new Vue({
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线 兄弟组件通信
  },
  router,
  store

}).$mount('#app')
